{config_load file="$language/lang.conf" section="account"}
<h3 class="ntitle">
<img src="{$tpl_path}images/ntitlebg.png" alt="" width="43" height="39">{#heading_account#}</h3>
<hr />
<br />




{if $error_message!=''}
<div class="warning">
	<div>{$error_message}</div>
</div><br /><br />
{/if}

<table width="100%" border="0" cellspacing="5" cellpadding="2">
  <tr>
    <td width="50%" valign="top">
{if $products_history}
<table width="100%" cellspacing="1" cellpadding="7" class="bgcolor4">
<tr><th>{#title_viewed_products#}</th></tr>
{foreach name=history_products item=products_history from=$products_history}
<tr class="bgcolor1">
<td valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="3">

              <tr>
              <td rowspan="4" valign="top">{if $products_history.PRODUCTS_IMAGE!=''}<a href="{$products_history.PRODUCTS_LINK}"><img src="{$products_history.PRODUCTS_IMAGE}" alt="{$products_history.PRODUCTS_NAME}" border="0" /></a>{/if}</td>
                <td valign="top"><a href="{$products_history.PRODUCTS_LINK}">{$products_history.PRODUCTS_NAME}</a></td>
              </tr>
              <tr> 
                <td valign="bottom">{$products_history.PRODUCTS_PRICE}<br />
				 {if $products_history.PRODUCTS_VPE}{$products_history.PRODUCTS_VPE}<br />{/if}
{$products_history.PRODUCTS_TAX_INFO}{$products_history.PRODUCTS_SHIPPING_LINK}<br />
				</td>
              </tr>
              <tr>
                <td valign="bottom"><a href="{$products_history.PRODUCTS_LINK}"></a><a href="{$products_history.PRODUCTS_CATEGORY_URL}">{#text_goto_cat#}</a></td>
              </tr>

</table></td>
</tr>
{/foreach}
</table>





{else}
<div class="basic">
    <div class="baseinfo">
		<div style="float: left;">
			<p><strong>{#title_welcome#}</strong></p>
            <p>{#text_welcome#}</p>
		</div>
	<div class="clr"></div>
</div></div>
{/if}






      {if $LINK_LOGIN}
      <table width="100%" border="0" cellspacing="0" cellpadding="3">
        <tr>
          <td valign="top" class="main"><img src="{$tpl_path}img/arrow_green.gif" alt="" /><a href="{$LINK_LOGIN}">{#text_login#}</a></td>
        </tr>
      </table> 
      {/if}




</td>
<td valign="top">
<h3 class="btitle">{#title_account#}</h3>
            <table width="100%" border="0" cellspacing="0" cellpadding="3">
              <tr> 
                <td><img src="{$tpl_path}img/arrow_green.gif" alt="" /><a href="{$LINK_EDIT}">{#text_edit#}</a></td>
              </tr>
              <tr> 
                <td><img src="{$tpl_path}img/arrow_green.gif" alt="" /><a href="{$LINK_ADDRESS}">{#text_address#}</a></td>
              </tr>
              <tr> 
                <td><img src="{$tpl_path}img/arrow_green.gif" alt="" /><a href="{$LINK_PASSWORD}">{#text_password#}</a></td>
              </tr>
            </table>


{if $order_content}
<br /><br />
<h3 class="btitle">{#title_orders#}&nbsp;&nbsp;</h3>
<div class="morefield">
<span class="arg"><a href="{$LINK_ALL}">{#text_all#}</a></span>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
              {foreach name=aussen item=order_data from=$order_content} 
              <tr> 
                <td rowspan="2" valign="top"><img src="{$tpl_path}img/arrow_green.gif" alt="" /></td>
                <td><a href="{$order_data.ORDER_LINK}">{$order_data.ORDER_DATE}</a>&nbsp;&nbsp;{#order_nr#} {$order_data.ORDER_ID}</td>
                <td>{#order_total#} {$order_data.ORDER_TOTAL}</td>
              </tr>
              <tr> 
                <td>{#order_status#}<br /><b>{$order_data.ORDER_STATUS}</b>
                </td>
                <td>{$order_data.ORDER_BUTTON}</td>
              </tr>
              {/foreach}
</table>
{/if}
<br /><br />
<h3 class="btitle">{#title_notification#}</h3>

            <table width="100%" border="0" cellspacing="0" cellpadding="3">
              <tr>
                <td><img src="{$tpl_path}img/arrow_green.gif" alt="" /><a href="{$LINK_NEWSLETTER}">{#text_newsletter#}</a></td>
              </tr>
            </table>
</td>
  </tr>
</table>